package com.jz.netthings.analysis.mapper;

import com.jz.netthings.analysis.bean.RoundsBase;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 轮次标准时间表 Mapper 接口
 * </p>
 *
 * @author yangyunyun
 * @since 2019-07-16
 */
public interface RoundsBaseMapper extends BaseMapper<RoundsBase> {

    @Select("SELECT * FROM rounds_base WHERE #{dateFormat} BETWEEN beginTime AND endTime")
    RoundsBase selectRoundsByDate(@Param("dateFormat") String dateFormat);
}
